package com.zgx.plus.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zgx.plus.generator.mapper.GenTableColumnMapper;
import com.zgx.plus.generator.po.GenTableColumn;
import com.zgx.plus.generator.service.GenTableColumnService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GenTableColumnServiceImpl extends ServiceImpl<GenTableColumnMapper, GenTableColumn> implements GenTableColumnService {

    @Override
    public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId) {
        return this.list(new LambdaQueryWrapper<GenTableColumn>()
                .eq(GenTableColumn::getTableId,tableId).orderByAsc(GenTableColumn::getSort));
    }

    @Override
    public int insertGenTableColumn(GenTableColumn genTableColumn) {
        return 0;
    }

    @Override
    public int updateGenTableColumn(GenTableColumn genTableColumn) {
        return 0;
    }

    @Override
    public int deleteGenTableColumnByIds(String ids) {
        return 0;
    }
}
